﻿<Controls:SinacorWindow
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	x:Class="Sinacor.UI.Design.Tester.View.SmartClient.TelaExemplo"
	Title="Liberação da Situação Financeira Patrimonial"
	Width="1024" Height="768" 
	xmlns:Controls="clr-namespace:Sinacor.Infra.UI.Controls.SmartClient;assembly=Sinacor.Infra.UI.Controls" 
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
	mc:Ignorable="d"
    ModuleId="CLI"
    ModulePlus="true"
    >

    <Controls:SinacorExpanderContainer>
        <Controls:SinacorExpanderContainer.RowDefinitions>
            <RowDefinition Height="146" />
            <RowDefinition Height="4" />
            <RowDefinition Height="195" />
            <RowDefinition Height="4" />
            <RowDefinition Height="170" />
            <RowDefinition Height="4" />
            <RowDefinition Height="175" />
            <RowDefinition Height="25" />
        </Controls:SinacorExpanderContainer.RowDefinitions>

        <Controls:SinacorExpander Grid.Row="0" 
								  Header="Pesquisar Situação Financeira Patrimonial de Clientes" 
								  IsExpanded="True" 
								  Width="Auto" 
								  HorizontalAlignment="Stretch" 
								  VerticalAlignment="Stretch">
            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Top">
                <Controls:SinacorGroupBox HorizontalAlignment="Left"
                                          VerticalAlignment="Top"
                                          Header="Pesquisar Clientes Não Liberados"
                                          Height="52"
                                          Width="422" 
										  x:Name="grbPesqNaoLiberados">
                    <Grid x:Name="grdNaoLiberados"
                          Width="332"
                          HorizontalAlignment="Left"
                          VerticalAlignment="Top">
                        <Controls:SinacorRadioButton HorizontalAlignment="Left"
                                                     Width="112"
                                                     Content="Com Bens"
                                                     x:Name="radioComBens"
													 TabIndex="1"/>
                        <Controls:SinacorRadioButton Margin="116,0,104,0"
                                                     Width="Auto"
                                                     Content="Sem Bens"
                                                     x:Name="radioSemBens" 
													 TabIndex="2"/>
                        <Controls:SinacorRadioButton HorizontalAlignment="Right"
                                                     Width="100"
                                                     Content="Todos"
                                                     IsChecked="True" 
													 x:Name="radioTodos" 
													 TabIndex="3"/>
                    </Grid>
                </Controls:SinacorGroupBox>
                <Controls:SinacorGroupBox VerticalAlignment="Top"
                                          Width="421"
                                          Height="52"
                                          Header="Pesquisar Clientes Liberados"
                                          Margin="426,0,0,0"
                                          HorizontalAlignment="Left" 
										  x:Name="grbPesqLiberados">
                    <Grid HorizontalAlignment="Left"
                          x:Name="grdLiberados"
                          VerticalAlignment="Top"
                          Width="332">
                        <Controls:SinacorRadioButton HorizontalAlignment="Left"
                                                     Width="112"
                                                     Content="Com Bens"
                                                     x:Name="radioLiberadoComBens"
													 TabIndex="4"/>
                        <Controls:SinacorRadioButton Margin="116,0,104,0"
                                                     Width="Auto"
                                                     Content="Sem Bens"
                                                     x:Name="radioLiberadoSemBens" 
													 TabIndex="5"/>
                        <Controls:SinacorRadioButton HorizontalAlignment="Right"
                                                     Width="100"
                                                     Content="Todos"
                                                     x:Name="radioLiberadoTodos" 
													 TabIndex="6"/>
                    </Grid>
                </Controls:SinacorGroupBox>
                <Controls:SinacorLabel HorizontalAlignment="Left"
                                       Content="Nome"
                                       Margin="0,56,0,0"
                                       Width="132"
                                       HorizontalContentAlignment="Right"
                                       VerticalAlignment="Top" 
									   x:Name="labelNome"/>
                <Controls:SinacorTextBox Margin="136,56,0,0"
                						 VerticalAlignment="Top"
                						 Width="460"
                						 HorizontalAlignment="Left"
                						 x:Name="textNome" 
										 TabIndex="7"/>
                <Controls:SinacorLabel Margin="598,56,0,0"
                					   Content="Nascimento/Fundação"
                					   HorizontalContentAlignment="Right"
                					   HorizontalAlignment="Left"
                					   Width="143"
                					   VerticalAlignment="Top" 
                					   x:Name="labelCADNascFund"/>
                <Controls:SinacorDatePicker HorizontalAlignment="Left"
                							VerticalAlignment="Top"
                							Margin="745,56,0,0" 
                							x:Name="textCADNascFund" 
											TabIndex="8"/>
                <Controls:SinacorLabel HorizontalAlignment="Left"
                                       Margin="0,83.277,0,0"
                                       Content="Tipo de Identificação"
                                       VerticalAlignment="Top"
                                       HorizontalContentAlignment="Right"
                                       Width="132" 
									   x:Name="labelTipoIdentificacao"/>
                <Controls:SinacorIdentificadorInvestidor HorizontalAlignment="Left"
                                                         VerticalAlignment="Top"
                                                         Margin="136,81,0,0"
                                                         Height="21"
                                                         Width="250" 
														 x:Name="textIdentificadorCliente" 
														 TabIndex="9"/>
                <Controls:SinacorLabel Margin="390,81,0,0"
                                       Content="Dependência"
                                       HorizontalContentAlignment="Right"
                                       VerticalAlignment="Top"
                                       Width="100"
                                       HorizontalAlignment="Left" 
									   x:Name="labelDependencia"/>
                <Controls:SinacorComboBox HorizontalAlignment="Left"
                                          VerticalAlignment="Top"
                                          IsSynchronizedWithCurrentItem="True"
                                          Margin="494,81,0,0"
                                          Width="243" 
										  x:Name="cbDependencia" 
										  TabIndex="10"/>
                <Controls:SinacorButton HorizontalAlignment="Left"
                                        VerticalAlignment="Top"
                                        Content="Pesquisar"
                                        Margin="755,81,0,0"
                                        Width="95"
                                        IsDefault="True" 
										x:Name="btnPesquisar" 
										TabIndex="11"/>
            </Grid>
        </Controls:SinacorExpander>
        <Controls:SinacorExpander Grid.Row="2" 
								  Header="Resultado da Pesquisa - &lt;Clientes Não Liberados - Com Bens&gt;" 
								  IsExpanded="True" 
								  Width="Auto" 
								  HorizontalAlignment="Stretch" 
								  VerticalAlignment="Stretch">
            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Top" Height="155">
                <Controls:SinacorCheckBox VerticalAlignment="Top" 
										  Content="Selecionar Todos" 
										  Width="140" 
										  x:Name="ckbSelecionaTodos" 
										  TabIndex="11"/>
                <Controls:SinacorDataGrid HorizontalAlignment="Stretch" 
										  Width="Auto" 
										  IsSynchronizedWithCurrentItem="True" 
										  VerticalAlignment="Stretch" 
										  Margin="0,25,0,0" 
										  x:Name="dataResultadoPesquisa">
                    <Controls:SinacorDataGrid.Columns>
						<Controls:Column Name="Check" 										
                                                 AutoAdjustWidthToContent="False"
						                         Width="50" 										
						                         Title="Cliente" />
                        <Controls:Column Name="NomeCliente" 										
                                                 AutoAdjustWidthToContent="False"
						                         Width="50" 										
						                         Title="" />
                        <Controls:Column Name="Identificador" 										
						                         Width="50" 										
                                                 AutoAdjustWidthToContent="False"
						                         Title="CPF/CNPJ" />
                        <Controls:Column Name="NascFund" 										
						                         Width="50" 										
                                                 AutoAdjustWidthToContent="False"
						                         Title="Nasc./Fund." />
                        <Controls:Column Name="Dependencia" 										
						                         Width="50" 										
                                                 AutoAdjustWidthToContent="False"
						                         Title="Dependencia" />
                        <Controls:Column Name="PercLimiteCliente" 										
						                         Width="50" 										
                                                 AutoAdjustWidthToContent="False"
						                         Title="% Limite Cliente" />
                        <Controls:Column Name="ValorLimite" 										
						                         Width="50" 										
                                                 AutoAdjustWidthToContent="False"
						                         Title="Valor Limite Operacional" />
                    </Controls:SinacorDataGrid.Columns>
                </Controls:SinacorDataGrid>
            </Grid>
        </Controls:SinacorExpander>
        <Controls:SinacorExpander Grid.Row="4" 
								  Header="Limites Operacionais" 
								  IsExpanded="True" 
								  Width="Auto" 
								  HorizontalAlignment="Stretch" 
								  VerticalAlignment="Stretch">
            <Grid HorizontalAlignment="Stretch" VerticalAlignment="Top">
                <Controls:SinacorGroupBox HorizontalAlignment="Left" 
										  VerticalAlignment="Top" 
										  Header="Valores Atuais" 
										  Width="348" 
										  Height="130" 
										  x:Name="gpbValorAtual">
                    <Grid Width="314" Height="100" HorizontalAlignment="Left" VerticalAlignment="Top">
                        <Controls:SinacorLabel HorizontalAlignment="Left" 
											   VerticalAlignment="Top" 
											   Content="Limite 1" 
											   Margin="62,0,0,0" 
											   HorizontalContentAlignment="Right" 
											   Width="75" 
											   x:Name="labelLimite1" />
                        <Controls:SinacorTextBox Margin="141,0,0,0" 
												 VerticalAlignment="Top" 
												 Width="160" 
												 HorizontalAlignment="Left" 
												 x:Name="textPrimeiro" 
												 TabIndex="12" 
												 IsEnabled="False"/>
                        <Controls:SinacorLabel HorizontalAlignment="Left" 
											   VerticalAlignment="Top" 
											   Content="Limite 2" 
											   Margin="62,25,0,0" 
											   HorizontalContentAlignment="Right" 
											   Width="75" 
											   x:Name="labelLimite2" d:LayoutOverrides="HorizontalAlignment" />
                        <Controls:SinacorTextBox Margin="141,25,0,0" 
												 VerticalAlignment="Top" 
												 Width="160" 
												 HorizontalAlignment="Left" 
												 x:Name="textSegundo" 
												 TabIndex="13" 
												 IsEnabled="False"/>
                        <Controls:SinacorLabel HorizontalAlignment="Left" 
											   Content="Limite 3" 
											   Margin="62,50,0,0" 
											   VerticalAlignment="Top" 
											   HorizontalContentAlignment="Right" 
											   Width="75" 
											   x:Name="labelLimite3" d:LayoutOverrides="HorizontalAlignment" />
                        <Controls:SinacorTextBox Margin="141,50,0,0" 
												 Width="160" 
												 VerticalAlignment="Top" 
												 HorizontalAlignment="Left" 
												 x:Name="textTerceiro" 
												 TabIndex="14" 
												 IsEnabled="False"/>
                        <Controls:SinacorLabel HorizontalAlignment="Left" 
											   Content="Capacidade Financeira" 
											   VerticalAlignment="Top" 
											   Width="137" 
											   HorizontalContentAlignment="Right" 
											   Margin="0,75,0,0" 
											   x:Name="labelCapacidadeFinanceira" />
                        <Controls:SinacorTextBox Margin="141,75,0,0" 
												 Width="160" 
												 VerticalAlignment="Top" 
												 HorizontalAlignment="Left" 
												 x:Name="textCapacidadeFinanceira" 
												 TabIndex="15" 
												 IsEnabled="False"/>
                    </Grid>
                </Controls:SinacorGroupBox>
                <Controls:SinacorGroupBox Header="Valores Após a Liberação" 
										  Width="620" 
										  Height="130" 
										  Margin="352,0,0,0" 
										  VerticalAlignment="Top" 
										  HorizontalAlignment="Left" 
										  x:Name="gpbValorAposLiberacao">
                    <Grid HorizontalAlignment="Left" VerticalAlignment="Top" Width="588" Height="115" Margin="0,-14,0,0">
                        <Controls:SinacorLabel HorizontalAlignment="Left" 
											   VerticalAlignment="Top" 
											   Content="Limite 1" 
											   Margin="63,14,0,0" 
											   Width="75" 
											   HorizontalContentAlignment="Right" 
											   x:Name="labelLimite1Apos" />
                        <Controls:SinacorTextBox Margin="142,14,0,0" 
												 VerticalAlignment="Top" 
												 HorizontalAlignment="Left" 
												 Width="160" 
												 x:Name="textPrimeiroApos" 
												 TabIndex="16" 
												 IsEnabled="False" />
                        <Controls:SinacorLabel HorizontalAlignment="Left" 
											   Content="Limite 2" 
											   Margin="63,39,0,0" 
											   Width="75" 
											   HorizontalContentAlignment="Right" 
											   x:Name="labelLimite2Apos" VerticalAlignment="Top" />
                        <Controls:SinacorTextBox Margin="142,39,0,0" 
												 Width="160" 
												 HorizontalAlignment="Left" 
												 x:Name="textSegundoApos" 
												 TabIndex="17" 
												 IsEnabled="False" d:LayoutOverrides="HorizontalAlignment, Height" VerticalAlignment="Top"/>
                        <Controls:SinacorLabel HorizontalAlignment="Left" 
											   Content="Limite 3" 
											   Margin="63,64,0,0" 
											   VerticalAlignment="Top" 
											   Width="75" 
											   HorizontalContentAlignment="Right" 
											   x:Name="labelLimite3Apos" />
                        <Controls:SinacorTextBox Margin="142,64,0,0" 
												 Width="160" 
												 HorizontalAlignment="Left" 
												 VerticalAlignment="Top" 
												 x:Name="textTerceiroApos" 
												 TabIndex="18" 
												 IsEnabled="False" d:LayoutOverrides="HorizontalAlignment"/>
                        <Controls:SinacorLabel HorizontalAlignment="Left" 
											   Content="Capacidade Financeira" 
											   Margin="1,89,0,0" 
											   VerticalAlignment="Top" 
											   Width="137" 
											   HorizontalContentAlignment="Right" 
											   x:Name="labelCapacidadeFinanceiraApos" />
                        <Controls:SinacorTextBox Margin="142,89,0,0" 
												 Width="160" 
												 HorizontalAlignment="Left" 
												 VerticalAlignment="Top" 
												 x:Name="textCapacidadeFinanceiraApos" 
												 TabIndex="19" 
												 IsEnabled="False" d:LayoutOverrides="HorizontalAlignment"/>
                        <Controls:SinacorGroupBox HorizontalAlignment="Left" 
												  VerticalAlignment="Top" 
												  Header="Parâmetro" 
												  Width="223" 
												  Margin="351,0.834,0,0" 
												  x:Name="grbParametro" 
												  Height="113">
                        	<StackPanel Width="182" Margin="0,-8,0,0">
                        		<Controls:SinacorLabel Content="50% do Limite Operacional"
                        							   x:Name="label50Limite" 
													   Width="180" />
                        		<Controls:SinacorLabel Content="Não Calculado pela SFP" 
                        							   x:Name="labelNaoCalculado" 
													   Width="180" />
                        		<Controls:SinacorLabel Content="20% do Limite Operacional" 
                        							   x:Name="label20Limite" 
													   Width="180" />
                        		<Controls:SinacorLabel Content="30% do Limite Operacional" 
                        							   x:Name="label30Limite" 
													   Width="180" />
                        	</StackPanel>
                        </Controls:SinacorGroupBox>
                    </Grid>
                </Controls:SinacorGroupBox>
            </Grid>
        </Controls:SinacorExpander>
        <Controls:SinacorExpander Grid.Row="6" 
								  Header="Lista de Bens do Cliente - SFP" 
								  IsExpanded="True" 
								  Width="Auto" 
								  HorizontalAlignment="Stretch" 
								  VerticalAlignment="Stretch">
            <Grid HorizontalAlignment="Stretch"
                  VerticalAlignment="Stretch">
                <Controls:SinacorDataGrid HorizontalAlignment="Stretch" 
										  Width="Auto" 
										  IsSynchronizedWithCurrentItem="True" 
										  Height="100" 
										  VerticalAlignment="Top" 
										  x:Name="dataListaBens">
                    <Controls:SinacorDataGrid.Columns>
                        <Controls:Column Name="Grupo" 										
						                         Width="50" 										
                                                 AutoAdjustWidthToContent="False"
						                         Title="Grupo" />
                        <Controls:Column Name="Subgrupo" 										
						                         Width="50" 										
                                                 AutoAdjustWidthToContent="False"
						                         Title="Subgrupo" />
                        <Controls:Column Name="PercentualLimiteBem" 										
						                         Width="50" 										
                                                 AutoAdjustWidthToContent="False"
						                         Title="% Limite Bem" />
                        <Controls:Column Name="DescricaoBem" 										
						                         Width="50" 										
                                                 AutoAdjustWidthToContent="False"
						                         Title="Descricao do Bem" />
                        <Controls:Column Name="DataVencimento" 										
						                         Width="50" 										
                                                 AutoAdjustWidthToContent="False"
						                         Title="Data de Vencimento" />
                        <Controls:Column Name="ValorDevedor" 										
						                         Width="50" 										
                                                 AutoAdjustWidthToContent="False"
						                         Title="Valor Devedor" />
                        <Controls:Column Name="ValorBem" 										
						                         Width="50" 										
                                                 AutoAdjustWidthToContent="False"
						                         Title="Valor do Bem" />
                    </Controls:SinacorDataGrid.Columns>
                </Controls:SinacorDataGrid>
                <Controls:SinacorLabel HorizontalAlignment="Left" 
									   VerticalAlignment="Top" 
									   Content="Valor Total dos Bens" 
									   Margin="688.807,105.223,0,0" 
									   Width="151" 
									   x:Name="ValorTotalBens" 
									   HorizontalContentAlignment="Right"/>
                <Controls:SinacorTextBox VerticalAlignment="Top" 
										 Margin="844,107.5,0,0" 
										 HorizontalAlignment="Left" 
										 Width="148" IsEnabled="False"/>
            </Grid>
        </Controls:SinacorExpander>
<Grid Grid.Row="7" 
	  HorizontalAlignment="Stretch" 
	  VerticalAlignment="Stretch" 
	  Height="30">
	<Controls:SinacorButton HorizontalAlignment="Left" 
							VerticalAlignment="Top" 
							Content="Liberar Cliente(s)" 
							Margin="880,4,0,0" 
							TabIndex="20" 
							x:Name="btnLiberarCliente" 
							Width="125"/>
		  </Grid>
    </Controls:SinacorExpanderContainer>
	
</Controls:SinacorWindow>